home *** CD-ROM | disk | FTP | other *** search
- Path: rcp6.elan.af.mil!rscernix!danpop
- From: danpop@mail.cern.ch (Dan Pop)
- Newsgroups: comp.lang.c
- Subject: Re: gettimeofday() makes me mad !
- Date: 27 Feb 96 16:13:37 GMT
- Organization: CERN European Lab for Particle Physics
- Message-ID: <danpop.825437617@rscernix>
- References: <4gnkth$4on@piston.ecp.fr> <4gu1ue$39m@news-f.iadfw.net>
- NNTP-Posting-Host: hpl3sn04.cern.ch
- X-Newsreader: NN version 6.5.0 #7 (NOV)
-
- alpet@airmail.net (Adam Peterson) writes:
-
- >dureta8@cti.ecp.fr (BIG ONE) wrote:
- >
- >> Hello all. If someone could help...
- >
- >>COMPILER : gcc, or cc on a Unix system.
- >
- >>PROBLEM : I'm trying to make a little program which must repeat an
- >>action every .2 second for example ( less than 1 sec anyway). time()
- ^^^^^^^^^^^^^^^^^^^^^^
- >>wouldn't fit, so I searched and found the function gettimeofday() in
- >
- >You are on a Unix system, any reason you are not using 'sleep'?
-
- The reason is right there, in front of your eyes. Sheesh.
-
- Another reason is that he might want to do something else in the mean time.
-
- Dan
- --
- Dan Pop
- CERN, CN Division
- Email: danpop@mail.cern.ch
- Mail: CERN - PPE, Bat. 31 R-004, CH-1211 Geneve 23, Switzerland
-